﻿@model BrnMall.Web.StoreAdmin.Models.UserCashListModel

@section header{
    <title>充值记录-店铺管理</title>
    <link type="text/css" rel="stylesheet" href="/admin_store/css/site.css" />
    <script type="text/javascript" src="/admin_store/scripts/jquery.js"></script>
    <script type="text/javascript" src="/admin_store/scripts/showlist.js"></script>
}
@section body{
    <h1 class="rightH1">
		微信小程序 &gt; 店铺管理 &gt; <span class="rightH1-cur">充值记录</span> 
        <div class="right">
        </div>
        <div class="clear"></div>
    </h1>
    @using (Html.BeginForm("cashlist", "cash"))
    {
        <div class="dataListSearch">
            <table height="32">
                <tbody>
                    <tr>
                        <td width="35"><img id="searchImg" src="/admin_store/images/search1.gif" /></td>
                        <td>&nbsp;&nbsp;&nbsp;会员昵称：</td>
                        <td width="130">@Html.TextBox("AccountName", Model.AccountName, new { height = "18" })</td>
                        <td>
                            <input id="Search" name="Search" type="image" class="searchBut submit" src="/admin_store/images/s.jpg" />
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>

        <div class="table_top"></div>

        <div class="dataList">
            <table width="100%">
                <thead>
                    <tr>
                        <th width="200" style="text-align:center">会员昵称</th>
                        <th align="left">账户余额</th>
                        <th align="left">赠送金额</th>
                    </tr>
                </thead>
                <tbody>
                    @foreach (var info in Model.List)
                    {
                        <tr>
                            <td style="text-align:center">@info.AccountName</td>
                            <td>@info.Cash</td>
                            <td>@info.GiveCash</td>
                        </tr>
                    }
                </tbody>
            </table>
        </div>
        <input type="hidden" id="uid" name="uid" value="0" />
        
        <div class="dataListEdit">
            <div class="page">
                @Html.StoreAdminPager(Model.PageModel)
            </div>
        </div>
        <script>
        $(function () {
            load();
        })
        function load() {
            $(".orderState").each(function () {
                var state = $(this).attr("data-state");
                if (state == 20)
                    $(this).html("等待付款")
                else if (state == 40)
                    $(this).html("待确认")
                else if (state == 60)
                    $(this).html("已付款")
                else
                    $(this).html("未知")
            })
        }

        </script>
    }
}